﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tradex.ComponentModel;

namespace Tradex.Operations {
    
    /// <summary>
    /// The PermissionKey identifies a specific Permission.
    /// </summary>
    public sealed class PermissionKey : Key<Permission> {

        /// <summary>
        /// Constructor taking the code as parameter.
        /// </summary>
        /// <param name="code"></param>
        public PermissionKey(
            string code
        ) {
            Code = code;
        }

        /// <summary>
        /// The code of the permission.
        /// </summary>
        public string Code { get; private set; }

    }

}
